Skip to main content
PATCH
/
creatives
Update a creative
curl --request PATCH \
  --url https://your_a2_service/creatives \
  --header 'Authorization: Bearer <token>' \
  --header 'Content-Type: application/json' \
  --data '{
  "banner": {
    "ext": {},
    "img": "",
    "link": {
      "ext": {},
      "url": ""
    }
  },
  "cid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "height": 123,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "native": {
    "ext": {},
    "link": {
      "ext": {},
      "url": ""
    }
  },
  "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "inactive",
  "type": "banner",
  "updated_at": "2023-11-07T05:31:56Z",
  "video": {
    "adm": "",
    "ctype": 2,
    "dur": 0,
    "ext": {
      "cdn": "",
      "linear": 1,
      "link": {
        "ext": {},
        "url": ""
      },
      "url": ""
    },
    "mime": ""
  },
  "width": 123
}'
{
  "banner": {
    "ext": {},
    "img": "",
    "link": {
      "ext": {},
      "url": ""
    }
  },
  "cid": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "created_at": "2023-11-07T05:31:56Z",
  "description": "<string>",
  "height": 123,
  "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "name": "<string>",
  "native": {
    "ext": {},
    "link": {
      "ext": {},
      "url": ""
    }
  },
  "no": 123,
  "owner_id": "3c90c3cc-0d44-4b50-8888-8dd25736052a",
  "status": "inactive",
  "type": "banner",
  "updated_at": "2023-11-07T05:31:56Z",
  "video": {
    "adm": "",
    "ctype": 2,
    "dur": 0,
    "ext": {
      "cdn": "",
      "linear": 1,
      "link": {
        "ext": {},
        "url": ""
      },
      "url": ""
    },
    "mime": ""
  },
  "width": 123
}

Authorizations

Authorization
string
header
required

The access token received from the authorization server in the OAuth 2.0 flow.

Body

application/json

Represents a updating creative entity.

id
string<uuid>
required

The id of creative

name
string
required

The name of creative

owner_id
string<uuid>
required

The owner's id of creative

type
enum<string>
required

The type of creative

Available options:
banner,
video,
native
banner
object

Represents a banner creative with image, link, and optional extensions.

cid
string<uuid> | null

The id of the campaign the creative is used in

created_at
string<date-time>

The time the creative was created

description
string | null

The creative's description

height
integer | null
default:0

The height that will be shown

native
object

Represents a native creative with link and optional extensions.

status
enum<string>
default:inactive

The status of creative

Available options:
active,
inactive
updated_at
string<date-time>

The time the creative was updated

video
object

Represents a video creative with MIME type, URL, and optional extensions.

width
integer | null
default:0

The width that will be shown

Response

Successful Response

Represents a reading creative entity.

id
string<uuid>
required

The id of creative

name
string
required

The name of creative

no
integer
required

The no of creative

owner_id
string<uuid>
required

The owner's id of creative

type
enum<string>
required

The type of creative

Available options:
banner,
video,
native
banner
object

Represents a banner creative with image, link, and optional extensions.

cid
string<uuid> | null

The id of the campaign the creative is used in

created_at
string<date-time>

The time the creative was created

description
string | null

The creative's description

height
integer | null
default:0

The height that will be shown

native
object

Represents a native creative with link and optional extensions.

status
enum<string>
default:inactive

The status of creative

Available options:
active,
inactive
updated_at
string<date-time>

The time the creative was updated

video
object

Represents a video creative with MIME type, URL, and optional extensions.

width
integer | null
default:0

The width that will be shown